AppleScriptRunner Read Me

AppleScriptRunner demonstrates how to programmatically execute AppleScripts from within an application.  In this example a number of AppleScripts are located in the folder "AppleScripts" within our application bundle.  When the sample is run a popup menu is populated with the names of all the scripts located within our AppleScripts folder.  When "Execute" is clicked, the selected AppleScript is executed passing it one Text parameter, the contents of out HITextView. This sample is designed so that each AppleScript takes one TEXT parameter, and has an entry point "AppleScriptEntry".  The main entry to the "interesting" portion of the code is the routine: RunAppleScript().

The following is taken directly from the "DisplayDialog.scpt" AppleScript:

on AppleScriptEntry(s)
	display dialog "AppleScriptRunner Alert :
" & s
end AppleScriptEntry